// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';
const apiPrefix = '/web';

/** 获取日/月/年用电量统计图数据 GET /statistic/electricity-consumption/chart/${param0} */
export async function electricityConsumptionControllerGetChart(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.electricityConsumptionControllerGetChartParams,
  options?: { [key: string]: any },
) {
  const { dateType: param0, ...queryParams } = params;
  return request<API.ReportTable>(
    `${apiPrefix}/statistic/electricity-consumption/chart/${param0}`,
    {
      method: 'GET',
      params: {
        ...queryParams,
      },
      ...(options || {}),
    },
  );
}

/** 导出日/月/年用电量列表数据 GET /statistic/electricity-consumption/export/${param0} */
export async function electricityConsumptionControllerExportDatas(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.electricityConsumptionControllerExportDatasParams,
  options?: { [key: string]: any },
) {
  const { dateType: param0, ...queryParams } = params;
  return request<any>(`${apiPrefix}/statistic/electricity-consumption/export/${param0}`, {
    method: 'GET',
    params: {
      ...queryParams,
    },
    ...(options || {}),
  });
}

/** 获取日/月/年用电量列表数据 GET /statistic/electricity-consumption/list/${param0} */
export async function electricityConsumptionControllerGetPage(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.electricityConsumptionControllerGetPageParams,
  options?: { [key: string]: any },
) {
  const { dateType: param0, ...queryParams } = params;
  return request<API.ApiResultStatisticElectricityVOStatisticElectricityData>(
    `${apiPrefix}/statistic/electricity-consumption/list/${param0}`,
    {
      method: 'GET',
      params: {
        ...queryParams,
      },
      ...(options || {}),
    },
  );
}
